package encome.work.service;

import encome.work.dao.Message;

import java.util.Date;
import java.util.List;

public interface MessageSevice {
    void add(Message message);
    List<Message> selectMessageToUser(long toId);
    List<Message> selectMessageFromUser(long fromId);
    List<Message> selectMessageConnectUser(long user_id);
    List<Message> selectMessageConnectUserFromTimeToTime(long user_id, Date start,Date end);
}
